package com.ca.ridersclubapplication.view.card;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;

import com.ca.ridersclubapplication.R;
import com.ea.ui.core.basic.EATextField;

public class PostCommentCard extends ConstraintLayout {

    public TextView titleView;
    public EATextField input;
    public Button submitButton;

    public PostCommentCard(@NonNull Context context) {
        super(context);
        initView(context);
    }

    public PostCommentCard(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    public PostCommentCard(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context);
    }

    private void initView(Context context) {

        View view = LayoutInflater.from(context).inflate(R.layout.post_comment_card, this);
        titleView = view.findViewById(R.id.tv_title);
        input = view.findViewById(R.id.input_content);
        submitButton = view.findViewById(R.id.btn_submit);
    }
}
